package com.platform.wx.util;

import java.util.Collection;
import java.util.concurrent.ConcurrentHashMap;
import java.util.concurrent.ConcurrentMap;

import com.platform.wx.mp.controller.WebWxChatSocketController;

public class WebSocketMapUtil {
	public static ConcurrentMap<String, WebWxChatSocketController> webSocketMap = new ConcurrentHashMap<>();

	public static void put(String key, WebWxChatSocketController myWebSocketServer){
     webSocketMap.put(key, myWebSocketServer);
    }

    public static WebWxChatSocketController get(String key){
         return webSocketMap.get(key);
    }

    public static void remove(String key){
         webSocketMap.remove(key);
    }
 
    public static Collection<WebWxChatSocketController> getValues(){
        return webSocketMap.values();
    }
}
